package cn.hd.dao;

import cn.hd.entity.Fileupload;
import cn.hd.entity.License;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LicenseDao {
    //一对一，分页查询
    public List<License> selectAllLicense();

    //把每个认证类型对应的资质文件添加到中间表中
    public int addFileuploadLicense(@Param("licenseId")long licenseId,@Param("fileuploadId")long fileuploadId);

    //根据编号查询认证类型及对应的资质文件
    public Fileupload selectLicenseById(long licenseId);

    //根据认证类型编号删除中间表中对应的资质文件
    public int deleteFileuploadLicense(long licenseId);

    //根据编号查询认证类型对象
    public License selectLicenseByLicenseId(long license_id);
}
